package net.trustie.dao;

import net.trustie.model.iteye_ask_Model;

import org.apache.ibatis.annotations.Insert;

public interface IteyeAsk_Dao {
	
	/*标准表中的字段*//*+ "insert into t_knowledge (`deal_title`,`author`,`content`,`tags`,`reply_num`,
	 * `view_num`,`vote_num`,`collection_num`,`abstract`,`type`,`crawled_time`,`url`,`created_time`,
	 * `category`,`source`,`history`,`author_url`,`last_time`,`url_md5`")*/
	
	/*标准表中剩余的字段 #{view_num},#{abstract},#{type},#{crawled_time},#{created_time},#{source},#{last_time},#{url_md5}
	*/
	
	@Insert("insert into iteye_ask"
			+ "(`questionId`,`url`,`deal_title`,`tags`,`category`,`content`,`vote_num`,`voteDown`,`questionScore`,"
			+ "`reply_num`,`collection_num`,`created_time`,`extractTime`,`author`,`author_url`,`pageMD5`,`history`)"
					
			+ " values (#{questionId},#{questionUrl},#{questionTitle},#{tag},#{categories},#{questionContent},#{voteUp},#{voteDown},"
			+ "#{questionScore},#{answerNum},#{interestNum},#{postTime},#{extractTime},#{author},#{authorUrl},#{pageMD5},#{history})")
	
	 /*1标准表中独有,设置为允许为空,INSERT需要补齐*/
    /*2与标准表对应字段*/
   /*3原社区中独有保留字段*/
	
			/*@Insert("insert into iteye_ask"
			+ "(`3questionId`,`2url`,`2deal_title`,`2tags`,`2category`,`2content`,`2vote_num`,`3voteDown`,`3questionScore`,"
			+ "`2reply_num`,`2collection_num`,`2created_time`,`3extractTime`,`2author`,`2author_url`,`3pageMD5`,`2history`,`view_num`,`abstract`"
			+ ",`type`,`crawled_time`,`created_time`,`source`,`last_time`,`url_md5`)"*/
	
	
	public int add(iteye_ask_Model ask_Model);
}
